const main = require('../main/main');

describe('taxi fee', function () {
    it('less than 2 km , no parking',function(){
        let journey=1.5;
        let time=0;
        let summary=main(journey,time);
        expect(summary).toEqual(6);
    });
    it('less than 8 km and more than 2 km, no parking',function(){
        let journey=3;
        let time=0;
        let summary=main(journey,time);
        expect(summary).toEqual(7);
    });
    it('more than 8 km , no parking',function(){
        let journey=9;
        let time=0;
        let summary=main(journey,time);
        expect(summary).toEqual(12);
    });
    it('more than 8 km ,  parking',function(){
        let journey=9;
        let time=15;
        let summary=main(journey,time);
        expect(summary).toEqual(16);
    });

});
